/* Contact and Careers pages: open layouts on the site's dotted background,
   no boxed wrappers. Headings use Sora, body copy keeps Manrope. */

.tnx-page {
  --tnx-ink: #0f172a;
  --tnx-body: #475569;
  --tnx-muted: #64748b;
  --tnx-line: #d5dde8;
  --tnx-blue: #2563eb;
  --tnx-blue-dark: #1d4ed8;
  --tnx-error: #b42318;
  --tnx-success: #067647;
  --tnx-whatsapp: #047857;
}

.tnx-page h1,
.tnx-page h2,
.tnx-page h3 {
  font-family: "Sora", "Manrope", sans-serif;
  color: var(--tnx-ink);
  letter-spacing: -0.02em;
}

.tnx-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tnx-blue-dark);
}

/* ---------- Contact hero: full-width office photograph ---------- */

.tnx-hero-image {
  position: relative;
  margin: 0;
  width: 100%;
  height: clamp(260px, 46vw, 600px);
  overflow: hidden;
}

.tnx-hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}

/* Soft fade into the page instead of a frame or border. */
.tnx-hero-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
}

/* ---------- Page intro ---------- */

.tnx-intro {
  padding: clamp(40px, 6vw, 72px) 0 clamp(8px, 2vw, 16px);
}

.tnx-intro h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
}

.tnx-intro__lead {
  max-width: 40rem;
  margin: 18px 0 0;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.7;
  color: var(--tnx-body);
}

/* ---------- Contact layout ---------- */

.tnx-contact {
  display: grid;
  gap: clamp(40px, 6vw, 88px);
  padding: clamp(32px, 5vw, 56px) 0 clamp(72px, 9vw, 120px);
}

@media (min-width: 960px) {
  .tnx-contact {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.45fr);
    align-items: start;
  }
}

.tnx-direct {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tnx-direct li {
  display: grid;
  gap: 4px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
}

.tnx-direct li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tnx-direct small {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tnx-muted);
}

.tnx-direct a,
.tnx-direct span {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--tnx-ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.tnx-direct a {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 44px;
}

.tnx-direct a:hover {
  color: var(--tnx-blue-dark);
}

.tnx-direct p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--tnx-body);
}

/* ---------- Form fields ---------- */

.tnx-form {
  min-width: 0;
}

.tnx-form__title {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 700;
}

.tnx-form__hint {
  margin: 0 0 28px;
  font-size: 0.95rem;
  color: var(--tnx-muted);
}

.tnx-form__group + .tnx-form__group {
  margin-top: 40px;
}

.tnx-form__group-title {
  margin: 0 0 20px;
  font-size: 1.05rem;
  font-weight: 700;
}

.tnx-grid {
  display: grid;
  gap: 22px 20px;
}

@media (min-width: 640px) {
  .tnx-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tnx-field--full {
    grid-column: 1 / -1;
  }
}

.tnx-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.tnx-field label,
.tnx-field__label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1e293b;
}

.tnx-field label .tnx-optional {
  font-weight: 500;
  color: var(--tnx-muted);
}

.tnx-field input,
.tnx-field select,
.tnx-field textarea {
  width: 100%;
  min-height: 54px;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid var(--tnx-line);
  border-radius: 14px;
  background: #fff;
  font: inherit;
  font-size: 1rem;
  color: var(--tnx-ink);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
  appearance: none;
}

.tnx-field select {
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%2364748b' stroke-width='1.6' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}

.tnx-field textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

.tnx-field input::placeholder,
.tnx-field textarea::placeholder {
  color: #94a3b8;
}

.tnx-field input:hover,
.tnx-field select:hover,
.tnx-field textarea:hover {
  border-color: #b6c3d6;
}

.tnx-field input:focus,
.tnx-field select:focus,
.tnx-field textarea:focus {
  outline: none;
  border-color: var(--tnx-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.tnx-field [aria-invalid="true"] {
  border-color: var(--tnx-error);
}

.tnx-field [aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.12);
}

.tnx-field__error {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--tnx-error);
}

.tnx-field__error:empty {
  display: none;
}

.tnx-field__help {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--tnx-muted);
}

/* ---------- CV upload ---------- */

.tnx-upload {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  min-height: 96px;
  padding: 20px 22px;
  border: 1.5px dashed #b6c3d6;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  transition:
    border-color 180ms ease,
    background-color 180ms ease;
}

.tnx-upload:hover,
.tnx-upload.is-dragging {
  border-color: var(--tnx-blue);
  background: rgba(239, 246, 255, 0.9);
}

.tnx-upload:focus-within {
  border-color: var(--tnx-blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

.tnx-upload[data-invalid="true"] {
  border-color: var(--tnx-error);
}

/* The native input covers the drop zone so tapping anywhere opens the picker. */
.tnx-upload input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.tnx-upload__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #eff6ff;
  color: var(--tnx-blue-dark);
}

.tnx-upload__text {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1 1 200px;
}

.tnx-upload__text strong {
  font-size: 0.98rem;
  color: var(--tnx-ink);
  overflow-wrap: anywhere;
}

.tnx-upload__text span {
  font-size: 0.85rem;
  color: var(--tnx-muted);
}

.tnx-upload__remove {
  position: relative;
  z-index: 1;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--tnx-line);
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
}

.tnx-upload__remove:hover {
  border-color: var(--tnx-error);
  color: var(--tnx-error);
}

.tnx-upload__remove[hidden] {
  display: none;
}

/* ---------- Actions and feedback ---------- */

.tnx-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.tnx-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.tnx-button--primary {
  background: var(--tnx-blue);
  color: #fff;
  box-shadow: 0 14px 30px -16px rgba(37, 99, 235, 0.7);
}

.tnx-button--primary:hover {
  background: var(--tnx-blue-dark);
}

.tnx-button--whatsapp {
  border: 1px solid #a7e3c8;
  background: #fff;
  color: var(--tnx-whatsapp);
}

.tnx-button--whatsapp:hover {
  background: #ecfdf5;
}

.tnx-button:focus-visible {
  outline: 2px solid var(--tnx-blue);
  outline-offset: 4px;
}

.tnx-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

@media (prefers-reduced-motion: no-preference) {
  .tnx-button:not(:disabled):hover {
    transform: translateY(-1px);
  }
}

@media (max-width: 480px) {
  .tnx-actions .tnx-button {
    width: 100%;
  }
}

.tnx-feedback {
  margin: 20px 0 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--tnx-body);
}

.tnx-feedback:empty {
  display: none;
}

.tnx-feedback.is-error {
  color: var(--tnx-error);
}

.tnx-feedback.is-success {
  padding: 14px 18px;
  border-radius: 14px;
  background: #ecfdf3;
  color: var(--tnx-success);
}

.tnx-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Careers ---------- */

.tnx-careers-intro {
  padding-top: clamp(56px, 8vw, 104px);
}

.tnx-careers-intro .tnx-actions {
  margin-top: 28px;
}

.tnx-roles {
  display: grid;
  gap: 20px;
  margin: clamp(40px, 6vw, 64px) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .tnx-roles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .tnx-roles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.tnx-role {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 40px -28px rgba(15, 23, 42, 0.35);
  transition:
    box-shadow 200ms ease,
    transform 200ms ease;
}

.tnx-role h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.tnx-role p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--tnx-body);
}

.tnx-role a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: auto;
  font-weight: 800;
  color: var(--tnx-blue-dark);
  text-decoration: none;
}

.tnx-role a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (prefers-reduced-motion: no-preference) {
  .tnx-role:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px -28px rgba(15, 23, 42, 0.45);
  }
}

.tnx-apply {
  display: grid;
  gap: clamp(40px, 6vw, 80px);
  padding: clamp(64px, 8vw, 104px) 0 clamp(72px, 9vw, 120px);
  scroll-margin-top: 80px;
}

@media (min-width: 960px) {
  .tnx-apply {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.5fr);
    align-items: start;
  }
}

.tnx-apply__aside h2 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
}

.tnx-apply__aside > p {
  margin: 0 0 32px;
  line-height: 1.7;
  color: var(--tnx-body);
}

@media (min-width: 960px) {
  .tnx-apply__aside {
    position: sticky;
    top: 110px;
  }
}
