/*===============================================*\
|| TerraLoc contact                               ||
|| ---------------------------------------------- ||
|| A night band with the ask, then the routing     ||
|| beside the form on paper. Replaces the stock    ||
|| JScms page, which was a call-centre photograph  ||
|| and example@gmail.com.                          ||
|| The form itself is dressed by tl-forms.css.     ||
\*===============================================*/

.tl-contact {
  /* Pinned, like every other TerraLoc surface: the page reads the same
     whichever face the site is wearing. */
  --tl-paper:        #F3F2EC;
  --tl-paper-deep:   #E9E7DD;
  --tl-panel:        #FAF9F4;
  --tl-white:        #FFFFFF;
  --tl-ink:          #23281F;
  --tl-muted:        #5C6253;
  --tl-dim:          #8B8F80;
  --tl-hairline:     #DFDCCB;
  --tl-accent:       #46603C;
  --tl-accent-ink:   #F3F2EC;
  --tl-accent-hover: #2E4228;
  --tl-cta:          #C86B3F;
  --tl-cta-ink:      #F3F2EC;
  --tl-cta-hover:    #A8512E;
  --tl-cta-rgb:      200, 107, 63;
  --tl-sage:         #9FB08A;
  --tl-night:        #14180F;
  --tl-night-ink:    #C9CDBD;
  --tl-night-line:   #2C3625;
  --tl-night-muted:  #8B937D;
  --tl-night-faint:  #55604A;

  --bs-body-color:      var(--tl-ink);
  --bs-heading-color:   var(--tl-ink);
  --bs-emphasis-color:  var(--tl-ink);
  --bs-secondary-color: var(--tl-muted);
  --bs-border-color:    var(--tl-hairline);
  --bs-link-color:      var(--tl-accent);
  --bs-link-hover-color: var(--tl-accent-hover);

  background: var(--tl-paper);
  color: var(--tl-ink);
}

/* style.css gives every <section> 7.5rem of padding, which put a band of bare
   paper between the header and this page's own night band. Element-qualified
   so it beats that rule without !important. */
section.tl-contact { padding: 0; }

.tl-contact-wrap { width: min(94%, 1240px); margin: 0 auto; }

/* ---------- the night band ---------- */

.tl-contact-head {
  position: relative;
  overflow: hidden;
  background: var(--tl-night);
  color: var(--tl-night-ink);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.tl-contact-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(900px 520px at 78% 10%, rgba(var(--tl-cta-rgb), 0.13), transparent 65%);
  pointer-events: none;
}

/* The same rings as the landing and the auth screens. Anchored bottom left,
   where the artwork is drawn to rise from. */
.tl-contact-contours {
  position: absolute;
  left: 0;
  bottom: -14rem;
  width: 46%;
  min-width: 34rem;
  height: 700px;
  opacity: 0.7;
  pointer-events: none;
}

.tl-contact-head .tl-contact-wrap { position: relative; z-index: 2; }

.tl-contact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--tl-font-mono, ui-monospace, monospace);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--tl-sage);
}

.tl-contact-head h1 {
  margin: 1.5rem 0 0;
  max-width: 20ch;
  font-family: var(--tl-font-display, "Bricolage Grotesque", sans-serif);
  font-size: clamp(2.25rem, 5.2vw, 4rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--tl-paper);
}
.tl-contact-head h1 em { font-style: italic; color: var(--tl-cta); }

.tl-contact-lede {
  margin: 1.375rem 0 0;
  max-width: 44rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--tl-night-ink);
}

/* Three readings under the headline, set like the figures on the landing. */
.tl-contact-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--tl-night-line);
}
.tl-contact-fact-k {
  display: block;
  font-family: var(--tl-font-mono, ui-monospace, monospace);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tl-night-faint);
}
.tl-contact-fact-v {
  display: block;
  margin-top: 0.5rem;
  font-family: var(--tl-font-mono, ui-monospace, monospace);
  font-size: 0.9375rem;
  color: var(--tl-sage);
}

/* ---------- the body ---------- */

.tl-contact-body { padding: clamp(3rem, 6vw, 5rem) 0 clamp(3.5rem, 8vw, 6rem); }

.tl-contact-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 27rem;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

/* ---------- routing ---------- */

.tl-contact-sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--tl-font-mono, ui-monospace, monospace);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--tl-accent);
}
.tl-contact-sec-eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--tl-accent);
}

.tl-contact-routes {
  margin: 1.5rem 0 0;
  border-top: 1px solid var(--tl-hairline);
}

.tl-contact-route {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--tl-hairline);
}
.tl-contact-route-ico {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0.125rem;
  color: var(--tl-sage);
}
.tl-contact-route h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--tl-ink);
}
.tl-contact-route p {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--tl-muted);
}
.tl-contact-route a { color: var(--tl-accent); font-weight: 600; text-decoration: none; }
.tl-contact-route a:hover { color: var(--tl-accent-hover); text-decoration: underline; }

/* ---------- what helps ---------- */

.tl-contact-helps {
  margin-top: 2.5rem;
  padding: 1.75rem;
  border: 1px solid var(--tl-hairline);
  border-radius: 12px;
  background: var(--tl-panel);
}
.tl-contact-helps h3 {
  margin: 0.75rem 0 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--tl-ink);
}
.tl-contact-helps ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.tl-contact-helps li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--tl-muted);
}
/* The same contour dash the legal pages use for a list mark. */
.tl-contact-helps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6875rem;
  width: 12px;
  height: 2px;
  background: var(--tl-sage);
}

/* ---------- the form ---------- */

.tl-contact-card {
  position: sticky;
  top: 5.5rem;
  padding: 2rem;
  border: 1px solid var(--tl-hairline);
  border-radius: 14px;
  background: var(--tl-panel);
  box-shadow: var(--tl-lift, 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.08));
}
.tl-contact-card h2 {
  margin: 0.75rem 0 0;
  font-family: var(--tl-font-display, "Bricolage Grotesque", sans-serif);
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tl-ink);
}
.tl-contact-card > p {
  margin: 0.75rem 0 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--tl-muted);
}

/* The privacy line under the button: small, and the last thing read. */
.tl-contact-note {
  margin: 1.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--tl-hairline);
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--tl-dim);
}
.tl-contact-note a { color: var(--tl-accent); font-weight: 600; text-decoration: none; }
.tl-contact-note a:hover { text-decoration: underline; }

/* ---------- responsive ---------- */

@media (max-width: 991.98px) {
  .tl-contact-cols { grid-template-columns: minmax(0, 1fr); }
  /* Sticky is pointless once the form is under the routing rather than
     beside it, and it would stick to the wrong thing. */
  .tl-contact-card { position: static; }
}

@media (max-width: 767.98px) {
  .tl-contact-facts { gap: 1.5rem 2rem; }
  .tl-contact-card { padding: 1.5rem 1.25rem; }
  .tl-contact-helps { padding: 1.25rem; }
  .tl-contact-route { grid-template-columns: 1.75rem minmax(0, 1fr); gap: 0.875rem; }
}
