/* ========================================
   CONTACT PAGE
======================================== */

.contact-page {
  background: #080808;
}

/* Hero */

.contact-hero {
  position: relative;
  min-height: 72vh;
  min-height: 72svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding-top: calc(var(--header-height) + var(--progress-height));
  background: #080808;
}

.contact-hero__image {
  position: absolute;
  inset: -10% 0;
  z-index: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center;
  transform: translate3d(0, var(--parallax-offset, 0), 0);
  will-change: transform;
  pointer-events: none;
}

.contact-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.74)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
}

.contact-hero__content {
  position: relative;
  z-index: 2;
  width: min(1200px, 100%);
  padding: clamp(7rem, 14vw, 12rem) clamp(1.5rem, 7vw, 7rem) 6rem;
  text-align: center;
}

.contact-hero__eyebrow,
.contact-section__eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.contact-hero h1 {
  margin: 0;
  font-size: clamp(2.8rem, 11vw, 9.5rem);
  line-height: 0.88;
  font-weight: 900;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.contact-hero__intro {
  max-width: 680px;
  margin: 1.8rem auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  line-height: 1.75;
}

/* Main contact area */

.contact-main {
  padding:
    clamp(4rem, 8vw, 8rem)
    clamp(1.25rem, 5vw, 5rem)
    clamp(7rem, 12vw, 12rem);
  background: radial-gradient(circle at 10% -7%, rgba(255, 153, 51, 0.1), transparent 40%), #000;
}

.contact-main__header {
  width: min(1000px, 100%);
  margin: 0 auto clamp(3rem, 7vw, 6rem);
  text-align: center;
}

.contact-main__header h2 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 7rem);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.contact-main__header > p:last-child {
  max-width: 680px;
  margin: 1.4rem auto 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.75;
}

.contact-layout {
  width: min(1400px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(355px, 0.75fr);
  align-items: start;
  gap: clamp(1.2rem, .5vw, 5rem);
}

/* Form */

.contact-form {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #101010;
  transition: 1s ease;
}

.contact-form.is-complete {
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
}

.contact-form__honeypot {
  position: absolute;
  left: -10000px;
  top: auto;

  width: 1px;
  height: 1px;

  overflow: hidden;
}

#contactForm {

  scroll-margin-top:
    calc(
      var(--header-height) +
      var(--progress-height) +
      2rem
    );
}

/* ========================================
   CONTACT INQUIRY TYPE
======================================== */

.contact-form__type {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  padding: 0;

  border: 0;
}

.contact-form__type legend {
  margin: 0 0 1rem;
  padding: 0;

  color: rgba(255, 255, 255, 0.9);

  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-form__type-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: clamp(0.75rem, 2vw, 1.25rem);
}

/*
  The label acts as the visible button.
*/
.contact-type-button {
  position: relative;

  display: block;

  cursor: pointer;
}

/*
  Visually hide the radio without removing it
  from keyboard navigation or screen readers.
*/
.contact-type-button input {
  position: absolute;

  width: 1px;
  height: 1px;

  margin: -1px;
  padding: 0;

  overflow: hidden;

  clip: rect(0 0 0 0);
  clip-path: inset(50%);

  white-space: nowrap;
  border: 0;
}

/*
  Visible button face.
*/
.contact-type-button span {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 64px;
  padding: 0.6rem 1rem;

  border: 2px solid var(--accent);

  background: transparent;
  color: #fff;

  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;

  transition:
    background 180ms ease,
    color 180ms ease,
    transform 250ms cubic-bezier(.22, 1, .36, 1);
}

/*
  Hover state.
*/
.contact-type-button:hover span {
  background: rgba(255, 153, 51, 0.12);

  transform: translateY(-2px);
}

/*
  Selected state.
*/
.contact-type-button input:checked + span {
  background: var(--accent);
  color: #000;

  transform: translateY(0);
}

/*
  Keyboard focus.
*/
.contact-type-button input:focus-visible + span {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.contact-method {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-method legend {
  margin: 0 0 0.7rem;
  padding: 0;

  color: rgba(255, 255, 255, 0.9);

  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-method__options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.contact-method-button {
  position: relative;
  display: block;
  cursor: pointer;
}

.contact-method-button input {
  position: absolute;

  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;

  overflow: hidden;

  clip: rect(0 0 0 0);
  clip-path: inset(50%);

  white-space: nowrap;
  border: 0;
}

.contact-method-button span {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 52px;
  padding: 0.6rem 0.8rem;

  border: 2px solid var(--accent);

  background: transparent;
  color: #fff !important;

  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-align: center !important;
  text-transform: uppercase !important;

  transition:
    background 180ms ease,
    color 180ms ease,
    transform 250ms cubic-bezier(.22, 1, .36, 1);
}

.contact-method-button:hover span {
  background: rgba(255, 153, 51, 0.12);
  transform: translateY(-2px);
}

.contact-method-button input:checked + span {
  background: var(--accent);
  color: #000 !important;
  transform: translateY(0);
}

.contact-method-button input:focus-visible + span {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.contact-success{
    height: 0%;
    place-items:center;
    min-height:420px;
    text-align:center;
    opacity:0;
    transform:translateY(20px);
    transition:
        opacity .6s ease,
        transform .6s ease;
}

.contact-success.is-visible{
	height: 100%;
    opacity:1;
    transform:translateY(0);
}

.contact-success h2 {
    font-size:clamp(2.8rem,6vw,5rem);
    text-transform:uppercase;
    margin-bottom:1rem;
}

.contact-success p {
    max-width:520px;
    font-size:1.2rem;
    line-height:1.8;
    color:rgba(255,255,255,.8);
}

.contact-status {
    margin-top:1rem;
    min-height:1.5rem;

    color:rgba(255,255,255,.8);

    text-align:center;

    transition:opacity .3s;
}

.contact-status.error {
    color:#ff7a7a;
}

.contact-status.success {
    color:var(--accent);
}

.form-field {
  display: grid;
  gap: 0.7rem;
}

.form-field--wide {
  grid-column: 1 / -1;
}

.form-field label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.form-field label span {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 0;
  padding: 0.95rem 0;
  background: transparent;
  color: #fff;
  font: inherit;
  outline: none;
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.form-field select {
  color-scheme: dark;
}

.form-field textarea {
  min-height: 190px;
  resize: vertical;
  line-height: 1.7;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 153, 51, 0.025);
}

.contact-form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(2rem, 4vw, 3rem);
}

.contact-form__note {
  max-width: 42ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.8rem;
  line-height: 1.6;
}

.contact-form__submit {
  flex-shrink: 0;
  cursor: pointer;
  background: transparent;
  font-family: inherit;
  transition: 0.5s;
}

/* Contact details */

.contact-details {
  display: grid;
  gap: 5px;
}

.contact-details__block {
  padding: clamp(1.75rem, 3vw, 3rem);
  background: #101010;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-details__block h3 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.05;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-details__block > p:not(.contact-section__eyebrow) {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
}

.contact-details__link {
  display: inline-block;
  margin-top: 1.4rem;
  color: rgba(255,255,255,1);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: color 180ms ease;
	font-size: 1rem;
}

.contact-details__link:hover,
.contact-details__link:focus-visible {
  color: #fff;
}

.contact-details__block--accent {
  background:
    radial-gradient(circle at 0 0, rgba(255, 153, 51, 0.18), transparent 60%),
    #101010;
	margin-top: 15px;
}

.contact-details__statement {
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(1.2rem, 2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.5 !important;
}

.contact-details__email {
  text-align: left;
}

.contact-details__email-intro {
  margin: 1rem 0 0;

  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
}

.contact-details__email .contact-details__link {
  margin-top: 0.7rem;
  margin-bottom: 0.7rem;
}

/* ========================================
   NEWFOUNDLAND LOCAL TIME
======================================== */

.contact-details__block--time {
  text-align: left;
}

.contact-local-time {
  margin-top: 0.75rem;
}

.contact-local-time__clock {
  display: block;

  color: #fff;

  font-size: clamp(2.3rem, 3vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0em;

  font-variant-numeric: tabular-nums;
}

.contact-local-time__date {
  margin: 0.75rem 0 0;

  color: rgba(255, 255, 255, 0.8);

  font-size: 1rem;
  line-height: 1.5;
}

.contact-local-time__clock {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 0.18em;

  color: rgba(255,255,255,0.8);

  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;

  font-variant-numeric: tabular-nums;
}

.contact-local-time__seconds {
  color: rgba(255, 255, 255, 0.2);

  font-size: clamp(2.3rem, 5vw, 4rem);
  font-weight: 100;
  letter-spacing: 0;
	margin-left: -5px;
}

.contact-local-time__period {
  color: rgba(255, 255, 255, 0.2);

  font-size: 0.7em;
  font-weight: 100;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-local-time__zone {
  margin: 0.5rem 0 0;

  color: rgba(255,255,255,0.3);

  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

@media (max-width: 1000px) {
  .contact-local-time__clock {
    justify-content: center;
  }
}

@media (max-width: 850px) {
  .contact-details__block--time {
    text-align: center;
  }
}

/* ========================================
   AUTOFILL STYLING
======================================== */

.form-field input:-webkit-autofill,
.form-field input:-webkit-autofill:hover,
.form-field input:-webkit-autofill:focus,
.form-field input:-webkit-autofill:active,
.form-field textarea:-webkit-autofill,
.form-field textarea:-webkit-autofill:hover,
.form-field textarea:-webkit-autofill:focus,
.form-field textarea:-webkit-autofill:active,
.form-field select:-webkit-autofill,
.form-field select:-webkit-autofill:hover,
.form-field select:-webkit-autofill:focus,
.form-field select:-webkit-autofill:active {
  -webkit-text-fill-color: #fff;
  caret-color: #fff;

  /*
    Cover the browser's autofill background with
    the same background used by your form fields.
  */
  box-shadow:
    0 0 0 1000px #101010 inset;

  -webkit-box-shadow:
    0 0 0 1000px #101010 inset;

  border-bottom-color:
    rgba(255, 255, 255, 0.24);

  transition:
    background-color 9999s ease-out 0s;
}

/*
  Preserve the orange focus border when an
  autofilled field receives focus.
*/
.form-field input:-webkit-autofill:focus,
.form-field textarea:-webkit-autofill:focus,
.form-field select:-webkit-autofill:focus {
  border-bottom-color: var(--accent);

  box-shadow:
    0 0 0 1000px #101010 inset;

  -webkit-box-shadow:
    0 0 0 1000px #101010 inset;
}

/* Firefox */
.form-field input:-moz-autofill,
.form-field textarea:-moz-autofill,
.form-field select:-moz-autofill {
  color: #fff;
  caret-color: #fff;

  background: #101010;

  box-shadow:
    0 0 0 1000px #101010 inset;

  border-bottom-color:
    rgba(255, 255, 255, 0.24);
}

@media (max-width: 1000px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .contact-email-link {
	transform: translateX(-50%);
    left: 50%;
    position: relative;
	}

  .contact-details__block--accent {
    grid-column: 2 / 2;
	  margin-top: 0;
  }
	
  .contact-details__statement {
	  font-size: clamp(1.1rem, 2vw, 1.1rem);
	  position: relative;
	  top: 50%;
	  transform: translateY(-50%);
  }
  .mobileCenter {
	text-align: center;
  }
}

@media (max-width: 700px) {
  .contact-hero {
    min-height: 62svh;
  }

  .contact-form__grid,
  .contact-details {
    grid-template-columns: 1fr;
  }
  .contact-form__type-options {
    grid-template-columns: 1fr;
  }
  .contact-details__block--accent {
    grid-column: auto;
    transform: none;
  }

  .contact-form__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-form__submit {
    width: 100%;
  }
  .contact-details__email {
  }
}

@media (max-width: 520px) {
  .contact-main {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .contact-form {
    padding: 1.35rem;
  }
  .contact-details__statement {
	  font-size: clamp(1rem, 2vw, 1rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-hero__image {
    transform: none !important;
  }
}
