/* =========================================================
   FRIDAI CONTACT PAGE
   A warm, modern reference desk
   Loads after public-site.css
   ========================================================= */


/* =========================================================
   PAGE FOUNDATIONS
   ========================================================= */

.contact-page {
  background: var(--deep-green);
}

.contact-page main {
  overflow: hidden;
}

.contact-page .desktop-nav a[aria-current="page"] {
  color: var(--white);
}

.contact-page .desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.contact-page .mobile-nav a[aria-current="page"] {
  color: var(--brand-bright);
  border-color: rgba(29, 185, 84, 0.3);
  background: rgba(29, 185, 84, 0.08);
}


/* =========================================================
   CONTACT ENTRANCE
   ========================================================= */

.contact-entry {
  position: relative;
  min-height: 900px;
  display: flex;
  align-items: center;
  padding: 148px 0 100px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(
      circle at 76% 22%,
      rgba(29, 185, 84, 0.24),
      transparent 26%
    ),
    radial-gradient(
      circle at 8% 82%,
      rgba(29, 185, 84, 0.1),
      transparent 28%
    ),
    linear-gradient(
      125deg,
      #030b06 0%,
      #06120c 48%,
      #0b2b18 100%
    );
}

.contact-entry::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.035) 1px,
      transparent 1px
    );
  background-size: 44px 44px;
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.92),
    transparent 100%
  );
}

.contact-entry::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(3, 11, 6, 0.7)
  );
}

.contact-architecture {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.contact-architecture span {
  position: absolute;
  bottom: -230px;
  width: 350px;
  height: 720px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0;
  border-radius: 175px 175px 0 0;
}

.contact-architecture span:nth-child(1) {
  left: -190px;
}

.contact-architecture span:nth-child(2) {
  left: calc(50% - 175px);
  opacity: 0.7;
}

.contact-architecture span:nth-child(3) {
  right: -190px;
}

.contact-entry-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns:
    minmax(0, 0.9fr)
    minmax(480px, 1.1fr);
  gap: 90px;
  align-items: center;
}


/* =========================================================
   CONTACT INTRODUCTION
   ========================================================= */

.contact-introduction {
  max-width: 650px;
}

.contact-introduction h1 {
  margin-bottom: 30px;
  font-size: clamp(3.5rem, 5.7vw, 6rem);
  line-height: 0.99;
  font-weight: 500;
  letter-spacing: -0.05em;
}

.contact-introduction h1 em {
  display: block;
  margin-top: 0.12em;
  color: var(--brand-bright);
  font-style: italic;
  line-height: 1.06;
  text-shadow: 0 0 45px rgba(29, 185, 84, 0.18);
}

.contact-lead {
  max-width: 610px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(1.05rem, 1.45vw, 1.22rem);
  line-height: 1.75;
}

.contact-followup {
  max-width: 590px;
  margin-bottom: 38px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.96rem;
  line-height: 1.78;
}


/* =========================================================
   STARTING NOTE
   ========================================================= */

.contact-starting-note {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 20px;
  max-width: 590px;
  padding: 24px 26px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.starting-note-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(29, 185, 84, 0.42);
  border-radius: 50%;
  color: var(--brand-bright);
  background: rgba(29, 185, 84, 0.09);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
}

.starting-note-label {
  margin-bottom: 7px;
  color: var(--brand-bright);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.contact-starting-note div:last-child > p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.86rem;
  line-height: 1.7;
}


/* =========================================================
   REFERENCE DESK
   ========================================================= */

.contact-desk {
  position: relative;
  width: 100%;
  max-width: 670px;
  margin-left: auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: var(--ink);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.99),
      rgba(242, 236, 224, 0.99)
    );
  box-shadow:
    0 38px 100px rgba(0, 0, 0, 0.4),
    12px 12px 0 rgba(29, 185, 84, 0.07);
}

.contact-desk::before {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 0;
  pointer-events: none;
  border: 1px solid rgba(25, 20, 20, 0.08);
}

.contact-desk-header,
.contact-desk-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 17px 22px;
  color: rgba(255, 255, 255, 0.76);
  background: var(--deep-green);
  font-size: 0.59rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.contact-desk-footer span:last-child {
  color: var(--brand-bright);
  font-size: 1rem;
}

.contact-desk-body {
  position: relative;
  z-index: 1;
  padding: 42px;
}

.contact-form-heading {
  margin-bottom: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.contact-form-heading > p {
  margin-bottom: 8px;
  color: var(--brand-deep);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.contact-form-heading h2 {
  max-width: 480px;
  margin-bottom: 0;
  font-size: clamp(2.25rem, 3.5vw, 3.35rem);
  line-height: 1.05;
  font-weight: 500;
}


/* =========================================================
   FORM LAYOUT
   ========================================================= */

.contact-form {
  display: grid;
  gap: 24px;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  min-width: 0;
}

.form-field label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.01em;
}

.form-field label span {
  color: var(--brand-deep);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(25, 20, 20, 0.16);
  border-radius: 10px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  font: inherit;
  font-size: 0.94rem;
  line-height: 1.5;
  box-shadow: inset 0 1px 2px rgba(25, 20, 20, 0.025);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.form-field input,
.form-field select {
  min-height: 50px;
  padding: 0 15px;
}

.form-field textarea {
  min-height: 165px;
  padding: 14px 15px;
  resize: vertical;
}

.form-field select {
  padding-right: 42px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(
      45deg,
      transparent 50%,
      var(--brand-deep) 50%
    ),
    linear-gradient(
      135deg,
      var(--brand-deep) 50%,
      transparent 50%
    );
  background-position:
    calc(100% - 18px) 21px,
    calc(100% - 13px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.form-field textarea::placeholder,
.form-field input::placeholder {
  color: #928b80;
  opacity: 1;
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: rgba(29, 73, 37, 0.3);
  background-color: rgba(255, 255, 255, 0.94);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background-color: var(--white);
  box-shadow:
    0 0 0 4px rgba(29, 185, 84, 0.11),
    inset 0 1px 2px rgba(25, 20, 20, 0.02);
}

.form-field input:invalid:not(:placeholder-shown),
.form-field textarea:invalid:not(:placeholder-shown) {
  border-color: rgba(149, 58, 45, 0.48);
}


/* =========================================================
   FORM FOOTER
   ========================================================= */

.contact-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding-top: 6px;
}

.contact-privacy-note {
  max-width: 350px;
  margin: 0;
  color: var(--muted);
  font-size: 0.73rem;
  line-height: 1.55;
}

.contact-form-footer .button {
  flex: 0 0 auto;
  min-width: 190px;
}

.contact-form-footer .button span {
  transition: transform 0.2s ease;
}

.contact-form-footer .button:hover span {
  transform: translateX(4px);
}


/* =========================================================
   HONEYPOT
   ========================================================= */

.contact-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}


/* =========================================================
   AUTOFILL
   ========================================================= */

.form-field input:-webkit-autofill,
.form-field input:-webkit-autofill:hover,
.form-field input:-webkit-autofill:focus,
.form-field textarea:-webkit-autofill,
.form-field select:-webkit-autofill {
  -webkit-text-fill-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--white) inset;
  transition: background-color 9999s ease-in-out 0s;
}


/* =========================================================
   RESPONSIVE — LARGE TABLET
   ========================================================= */

@media (max-width: 1100px) {
  .contact-entry-layout {
    grid-template-columns:
      minmax(0, 0.85fr)
      minmax(450px, 1.15fr);
    gap: 55px;
  }

  .contact-introduction h1 {
    font-size: clamp(3.25rem, 5.3vw, 5.2rem);
  }

  .contact-desk-body {
    padding: 36px;
  }
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 900px) {
  .contact-entry {
    min-height: auto;
    align-items: flex-start;
  }

  .contact-entry-layout {
    grid-template-columns: 1fr;
    gap: 62px;
  }

  .contact-introduction {
    max-width: 760px;
  }

  .contact-lead,
  .contact-followup,
  .contact-starting-note {
    max-width: 680px;
  }

  .contact-desk {
    width: min(100%, 720px);
    max-width: none;
    margin: 0;
  }
}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 680px) {
  .contact-entry {
    padding: 120px 0 76px;
  }

  .contact-architecture span:nth-child(2) {
    display: none;
  }

  .contact-introduction h1 {
    font-size: clamp(2.95rem, 13vw, 4.2rem);
  }

  .contact-introduction h1 em {
    margin-top: 0.08em;
  }

  .contact-lead {
    font-size: 1rem;
  }

  .contact-starting-note {
    grid-template-columns: 42px 1fr;
    gap: 15px;
    padding: 21px;
  }

  .starting-note-marker {
    width: 38px;
    height: 38px;
  }

  .contact-desk {
    border-radius: 10px;
    box-shadow:
      0 28px 70px rgba(0, 0, 0, 0.34),
      7px 7px 0 rgba(29, 185, 84, 0.07);
  }

  .contact-desk-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .contact-desk-header,
  .contact-desk-footer {
    padding: 15px 18px;
  }

  .contact-desk-body {
    padding: 30px 22px;
  }

  .contact-form-heading {
    margin-bottom: 28px;
    padding-bottom: 24px;
  }

  .contact-form-heading h2 {
    font-size: clamp(2.1rem, 9vw, 2.9rem);
  }

  .contact-form-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-form {
    gap: 24px;
  }

  .contact-form-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .contact-privacy-note {
    max-width: none;
  }

  .contact-form-footer .button {
    width: 100%;
  }
}


/* =========================================================
   VERY SMALL SCREENS
   ========================================================= */

@media (max-width: 420px) {
  .contact-introduction h1 {
    font-size: 2.75rem;
  }

  .contact-starting-note {
    grid-template-columns: 1fr;
  }

  .contact-desk-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .form-field input,
  .form-field select {
    min-height: 48px;
  }
}